package com.csw.xuxianParent.xuxianBase;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

import com.csw.xuxianParent.xuxianCommon2.utils.IdWorker;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableEurekaClient
@ComponentScan("com.csw.xuxianParent.xuxianBase.dao")
public class XuxianBaseApplication {
	public static void main(String[] args) {
		SpringApplication.run(XuxianBaseApplication.class);

	}

	@Bean
	public IdWorker idWorker() {
		return new IdWorker();
	}
}
